<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
    <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
    <title>Document</title>
    <style>
        .tab-control {
            height: 40px;
            line-height: 40px;
            display: flex;
        }

        .tab-control .tab-item {
            flex: 1;
            text-align: center;
            display: flex;
            flex-direction: column;
        }

        .tab-control .title {
            padding: 3px 5px;
        }

        .tab-control .title.active {
            color: red;
            border-bottom: 3px solid red;
        }
    </style>
</head>

<body>
    <div id="root"></div>
    <script type="text/babel" src="./TabControl.js"></script>
</body>

</html>